package com.zhouxiaoge.service;

import com.zhouxiaoge.dao.PermissionDao;
import com.zhouxiaoge.dao.PermissionDaoImpl;
import com.zhouxiaoge.entity.Permission;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-03-30 16:49
 */

public class PermissionServiceImpl implements PermissionService {

    private PermissionDao permissionDao = new PermissionDaoImpl();

    public Permission createPermission(Permission permission) {
        return permissionDao.createPermission(permission);
    }

    public void deletePermission(Long permissionId) {
        permissionDao.deletePermission(permissionId);
    }
}
